/**
 * @properties={typeid:35,uuid:"52BBFB3E-9805-4143-996D-EB3EECF12F95"}
 */
var fLetra = null;

/**
 * @properties={typeid:35,uuid:"3A82B071-3AA0-4323-B247-38A028F85266",variableType:4}
 */
var fNroLiq = null;

/**
 * @properties={typeid:35,uuid:"E179C51D-BA85-4AC5-8EDF-3D522ACB9AA0",variableType:4}
 */
var fSucursal = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"1C1E27B8-CDAD-4AC2-9C5F-239F834A3FFB"}
 */
function buscar(event) 
{
	forms.liq_baja_2.controller.find()
	
	forms.liq_baja_2.nro_liquidacion = fNroLiq
	forms.liq_baja_2.letra = fLetra
	forms.liq_baja_2.sucursal = fSucursal
	forms.liq_baja_2.tipo_doc = 6
	
	if (forms.liq_baja_2.controller.search() != 0)
		application.showFormInDialog(forms.liq_baja_2,-1,-1,-1,-1,'Liquidacion Nº'+fNroLiq,false,false,'liquidaciones',true)
	else
		globals.gDialog('Error','No se encontraron liquidaciones','OK','CerrarForm')
}
